<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title></title>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<script type='text/javascript' src='/dwr/engine.js'></script>
<script
	src="http://ajax.googleapis.com/ajax/libs/mootools/1.2.2/mootools-yui-compressed.js"></script>

</head>
<body>
<script type='text/javascript' src='/dwr/interface/calculateService.js'></script>
<script type="text/javascript">
var calculatorReply = function(data) {
	$('calculator-result').set('value', data);
}
</script>
<p
	style="font: 14px bold Verdana, Geneva, sans-serif; margin-left: 30px;">输入表达式:</p>
<form><textarea name="calculator-request" id="calculator-request"
	style="width: 80%; height: 50px; margin-left: 30px;"></textarea></form>
<input type="button" value="计算"
	style="margin-top: 20px; margin-left: 200px; width: 60px; height: 25px;"
	onclick="calculateService.calculate($('calculator-request').value,calculatorReply);" />
<p
	style="font: 14px bold Verdana, Geneva, sans-serif; margin-left: 30px; margin-top: 0px;">结果:</p>
<p><input id="calculator-result" readonly
	style="width: 80%; margin-left: 30px; margin-top: 0px; margin-bottom:5%"> </input></p>

</body>
</html>
